import Vue from 'vue'
import './plugins/vuetify'
import config from '../config';
import Vuetify from 'vuetify'
import 'vuetify/dist/vuetify.min.css'
import 'vuetify/src/stylus/app.styl'
import App from './App'
import router from './router'
import store from './store/index'
import Swiper from 'swiper'
import 'swiper/dist/css/swiper.min.css'
import MintUI from 'mint-ui'
import 'mint-ui/lib/style.css'
import './assets/css/style.css'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import MuseUI from 'muse-ui'
import 'muse-ui/dist/muse-ui.css'
import '@/assets/js/iconfont.js'
import '@/assets/js/iconfont1.js'
import qs from 'qs'
import '@/icons'
import MyComponent from './components/MyComponent'
import './config/http'
import '@mdi/font/css/materialdesignicons.css'
// 可以解決点击同一个路由报的错误"NavigationDuplicated {_name: "NavigationDuplicated", name:"
import Router from 'vue-router'
const originalPush = Router.prototype.push
Router.prototype.push = function push(location) {
  return originalPush.call(this, location).catch(err => err)
}

Vue.use(MyComponent);
Vue.use(Router)
Vue.prototype.$qs=qs;
Vue.use(MintUI)
Vue.use(ElementUI)
Vue.use(MuseUI)
Vue.use(Vuetify,{
  iconfont: 'mdi',
  theme: config.theme
})
Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  Swiper,
  components: { App },
  template: '<App/>'
})
